package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HlyTestMapper;
import com.ruoyi.system.domain.HlyTest;
import com.ruoyi.system.service.IHlyTestService;

/**
 * 测试Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-07
 */
@Service
public class HlyTestServiceImpl implements IHlyTestService 
{
    @Autowired
    private HlyTestMapper hlyTestMapper;

    /**
     * 查询测试
     * 
     * @param id 测试主键
     * @return 测试
     */
    @Override
    public HlyTest selectHlyTestById(Long id)
    {
        return hlyTestMapper.selectHlyTestById(id);
    }

    /**
     * 查询测试列表
     * 
     * @param hlyTest 测试
     * @return 测试
     */
    @Override
    public List<HlyTest> selectHlyTestList(HlyTest hlyTest)
    {
        return hlyTestMapper.selectHlyTestList(hlyTest);
    }

    /**
     * 新增测试
     * 
     * @param hlyTest 测试
     * @return 结果
     */
    @Override
    public int insertHlyTest(HlyTest hlyTest)
    {
        return hlyTestMapper.insertHlyTest(hlyTest);
    }

    /**
     * 修改测试
     * 
     * @param hlyTest 测试
     * @return 结果
     */
    @Override
    public int updateHlyTest(HlyTest hlyTest)
    {
        return hlyTestMapper.updateHlyTest(hlyTest);
    }

    /**
     * 批量删除测试
     * 
     * @param ids 需要删除的测试主键
     * @return 结果
     */
    @Override
    public int deleteHlyTestByIds(Long[] ids)
    {
        return hlyTestMapper.deleteHlyTestByIds(ids);
    }

    /**
     * 删除测试信息
     * 
     * @param id 测试主键
     * @return 结果
     */
    @Override
    public int deleteHlyTestById(Long id)
    {
        return hlyTestMapper.deleteHlyTestById(id);
    }
}
